import {test} from './axios'

export function demo_test(token){
  return test({
    headers: { authorization:token},
    url:'/test'
  })
}

export function login(account,password){
  return test({
    method:'POST',
    url:'/login',
    data:{
    account,
    password,
    }
    
  })
}

export function getdetail(token,account){
  return test({
    headers: { authorization:token},
    url:'/detail',
    data:{account}
  })
}